package com.online.teaching.module.teacher.homework.service;

import com.github.pagehelper.PageInfo;
import com.online.teaching.module.teacher.homework.domain.dto.AnswerCorrentingDTO;
import com.online.teaching.module.teacher.homework.domain.dto.HomeWorkAddDTO;
import com.online.teaching.module.teacher.homework.domain.vo.GetAnswerListVO;
import com.online.teaching.module.teacher.homework.domain.vo.GetHomeWorkListVO;

/**
 * @author yg
 */
public interface TeacherHomeworkService {
    /**
     * 教师添加作业
     * @param homeWorkAddDTO
     * @param teaId
     * @return
     */
    int addHomework(HomeWorkAddDTO homeWorkAddDTO,Integer teaId);

    /**
     * 教师删除作业
     * @param homeworkId
     * @param teachesId
     * @return
     */
    int deleteHomework(Integer homeworkId,Integer teachesId);

    /**
     * 教师获取该门课的作业
     * @param teachesId
     * @param teacherId
     * @param page
     * @param size
     * @return
     */
    PageInfo<GetHomeWorkListVO> getHomeWorkList(Integer teachesId,Integer teacherId, Integer page, Integer size);

    /**
     * 老师获取某一门作业的作答列表
     * @param homeworkId
     * @param page
     * @param size
     * @return
     */
    PageInfo<GetAnswerListVO>getAnswerList(Integer homeworkId,Integer page,Integer size);

    /**
     * 老师批改作业
     * @param answerCorrentingDTO
     * @return
     */
    int correctingAnswer(AnswerCorrentingDTO answerCorrentingDTO,Integer teaId);
}
